namespace ColorFillGame.Domain.Events;

public class PlayerJoinedGameEvent : DomainEvent
{
    public Guid GameId { get; private set; }
    public Guid PlayerId { get; private set; }
    public string PlayerName { get; private set; }

    public PlayerJoinedGameEvent(Guid gameId, Guid playerId, string playerName)
    {
        GameId = gameId;
        PlayerId = playerId;
        PlayerName = playerName;
        OccurredOn = DateTime.UtcNow;
    }
}